package com.yuliang.vueblog.util;

import com.yuliang.vueblog.shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;


public class ShiroUtil {

    public static AccountProfile getProfile(){
        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }

}
